/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unisinos.pgr.graub;

import javax.media.opengl.GL;

/**
 *
 * @author Douglas
 */
public class Stadium {
    
    public static final float piso = -0.8f;
    public static final float grass = 0.7f;

    
    public static void field(GL gl) {
        gl.glBegin(gl.GL_QUADS);
        gl.glColor3f(0, grass, 0);
        gl.glVertex3f(0, piso, 5.0f);
        gl.glVertex3f(0, piso, 0.0f);
        gl.glVertex3f(10, piso, 0.0f);
        gl.glVertex3f(10, piso, 5.0f);
        gl.glEnd();
        gl.glBegin(gl.GL_QUADS);
        gl.glVertex3f(0, piso, 5.0f);
        gl.glVertex3f(0, piso, 0.0f);
        gl.glVertex3f(-10, piso, 0.0f);
        gl.glVertex3f(-10, piso, 5.0f);
        gl.glEnd();
        gl.glBegin(gl.GL_POLYGON);
        gl.glVertex3f(0, piso, -5.0f);
        gl.glVertex3f(0, piso, 0.0f);
        gl.glVertex3f(-10, piso, 0.0f);
        gl.glVertex3f(-10, piso, -5.0f);
        gl.glEnd();
        gl.glBegin(gl.GL_POLYGON);
        gl.glVertex3f(0, piso, -5.0f);
        gl.glVertex3f(0, piso, 0.0f);
        gl.glVertex3f(10, piso, 0.0f);
        gl.glVertex3f(10, piso, -5.0f);
        gl.glEnd();
    }

    //Goleira
    public static void goalPosts(GL gl) {
        gl.glBegin(gl.GL_POLYGON);
        gl.glColor3f(0.5f, 0.5f, 0.5f);
        gl.glVertex3f(10, piso, -2.5f);
        gl.glVertex3f(10, piso, 2.5f);
        gl.glVertex3f(10, piso + 1, 2.5f);
        gl.glVertex3f(10, piso + 1, -2.5f);
        gl.glEnd();
    }

    
    
}
